<template>
	<view>
		<!-- <phone-search-list :phones="phones" @paramClick="paramClick"></phone-search-list> -->
	</view>		
</template>

<script>
	
	// import phoneSearchList from '@/components/phone-directory/phone-search-list.vue'
	
	export default {
		name:"phone-search",
		components:{
			// phoneSearchList
		},
		data() {
			return {
				phones:null,
			}
		},
		onLoad (option) {
			this.phones = JSON.parse(unescape(option.phones))
			uni.startPullDownRefresh();
		},
		onPullDownRefresh() {
			console.log('refresh');
			setTimeout(function () {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods:{
			paramClick (e) {
				uni.$emit('login',{
					name:e.name,
				});
				uni.navigateBack({
					delta: 2
				}
				);
			}
		}
	}
</script>

<style>
	
</style>
